﻿using Orchard.ContentManagement.Handlers;
using Orchard.Data;
using Whatsnexx.Models;

namespace Whatsnexx.Handlers
{
    public class WhatsnexxHandler : ContentHandler
    {
        public WhatsnexxHandler(IRepository<WhatsnexxPartRecord> ticketBusRulesPartRepository) 
        {
            //Orchard can store and persist WhatsnexxParts for content items which have the WhatsnexxPart on them.
            Filters.Add(StorageFilter.For(ticketBusRulesPartRepository));
        }
    }
}